package com.cfh.service;

import com.cfh.domain.User;
import org.springframework.web.bind.annotation.*;

/**
 * @author chenfh
 * @date 2019/7/8
 */

public interface HelloService {

    @GetMapping("/hello")
    String hello();

    @GetMapping("/hello1")
    String hello(@RequestParam("name") String name);

    @GetMapping("/hello2")
    User hello(@RequestHeader("name") String name, @RequestHeader("age") Integer age);

    @PostMapping("/hello3")
    String hello(@RequestBody User user);
}
